package com.tancire.sources.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 资源管理对象 sur_resource
 *
 * @author chenchao
 * @date 2024-07-05
 */
public class SurResource extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 所属分类 */
    @Excel(name = "所属分类")
    private Long categoryId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 资源类型  */
    @Excel(name = "资源类型 ")
    private String resourceType;

    /** 资源名称 */
    @Excel(name = "资源名称")
    private String resourceName;

    /** 缩略图 */
    @Excel(name = "缩略图")
    private String resourceImg;

    /** 资源描述 */
    @Excel(name = "资源描述")
    private String resourceDesc;

    /** 资源状态 0 正常 1 封禁 */
    @Excel(name = "资源状态 0 正常 1 封禁")
    private Integer resourceStatus;

    /** 上映时间 */
    @Excel(name = "上映时间")
    private String resourceDay;

    /** 评分 */
    @Excel(name = "评分")
    private String resourceScore;

    /** 地区 */
    @Excel(name = "地区")
    private String resourceAddress;

    /** 标签 */
    @Excel(name = "标签")
    private String resourceTags;

    /** 是否免费商用 */
    @Excel(name = "是否免费商用")
    private Integer resourceFree;

    /** 0 正常  1 删除  真删除，字段保留 */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }
    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() {
        return categoryId;
    }
    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryName() {
        return categoryName;
    }
    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public String getResourceType() {
        return resourceType;
    }
    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getResourceName() {
        return resourceName;
    }
    public void setResourceImg(String resourceImg) {
        this.resourceImg = resourceImg;
    }

    public String getResourceImg() {
        return resourceImg;
    }
    public void setResourceDesc(String resourceDesc) {
        this.resourceDesc = resourceDesc;
    }

    public String getResourceDesc() {
        return resourceDesc;
    }
    public void setResourceStatus(Integer resourceStatus) {
        this.resourceStatus = resourceStatus;
    }

    public Integer getResourceStatus() {
        return resourceStatus;
    }
    public void setResourceDay(String resourceDay) {
        this.resourceDay = resourceDay;
    }

    public String getResourceDay() {
        return resourceDay;
    }
    public void setResourceScore(String resourceScore) {
        this.resourceScore = resourceScore;
    }

    public String getResourceScore() {
        return resourceScore;
    }
    public void setResourceAddress(String resourceAddress) {
        this.resourceAddress = resourceAddress;
    }

    public String getResourceAddress() {
        return resourceAddress;
    }
    public void setResourceTags(String resourceTags) {
        this.resourceTags = resourceTags;
    }

    public String getResourceTags() {
        return resourceTags;
    }
    public void setResourceFree(Integer resourceFree) {
        this.resourceFree = resourceFree;
    }

    public Integer getResourceFree() {
        return resourceFree;
    }
    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("resourceType", getResourceType())
            .append("resourceName", getResourceName())
            .append("resourceImg", getResourceImg())
            .append("resourceDesc", getResourceDesc())
            .append("resourceStatus", getResourceStatus())
            .append("resourceDay", getResourceDay())
            .append("resourceScore", getResourceScore())
            .append("resourceAddress", getResourceAddress())
            .append("resourceTags", getResourceTags())
            .append("resourceFree", getResourceFree())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
